import requests


class Login:
    pass

    def __init__(self):
        self._pat_token = self.plat_logen()

    def plat_logen(self):
        data = {
            "method": "post",
            "url": "https://api.admin.merchant.java.crmeb.net/api/admin/platform/login",
            "headers": {"content-type":"application/json"},
            "json": {
    'account': 'demo',
    'pwd': 'crmeb.com',
    'captchaVO': {},
    }
}
        res = requests.request(**data)
        return res.json()['data']['token']


if __name__ == '__main__':
    Login().plat_login()
